package com.io.webflow.service;

import com.io.config.WrapInt;
import com.io.model.RegisterReq;
import com.io.model.TerminalPrincipal;
import io.netty.channel.ChannelHandlerContext;

/**
 * Created by yangyx on 2016/7/28.
 */
public interface RegisterService {

    WrapInt<RegisterReq> handlerReqister(RegisterReq registerReq, ChannelHandlerContext ctx);
    /**
     *@Author yangyx 【yang_yaxu@launchdesign.com.cn】
     *@Date  2016/8/1 17:03
     *
     */
    WrapInt<RegisterReq> terminalRegister(RegisterReq obj);
    /**
     *@Author yangyx 【yang_yaxu@launchdesign.com.cn】
     *@Date  2016/8/2 9:47
     *修改principal对象的密码
     */
    void setNewPassword(String newPassword, TerminalPrincipal principal);
}
